package com.hxzy.service.impl;

import com.hxzy.entity.DictData;
import com.hxzy.mapper.DictDataMapper;
import com.hxzy.service.DictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 类说明
 *
 * @author admin
 * @date 2021-09-07
 */
@Transactional(rollbackFor = Exception.class)
@Service
public class DictDataServiceImpl extends CommonServiceImpl<DictData,Long> implements DictDataService {

    private DictDataMapper  dictDataMapper;

    @Autowired
    public void setDictDataMapper(DictDataMapper dictDataMapper) {
        this.dictDataMapper = dictDataMapper;
        super.setMyBatisBaseDao(dictDataMapper);
    }

    @Override
    public List<DictData> findDictDataByType_api(String dictType) {
        return this.dictDataMapper.findDictDataByType_api(dictType);
    }
}
